/**
 * h5定义配置的信息
 */
import { store } from 'xijs';
import { pageConstant } from '@/config/contant.js'

export const config = {

}

export function getUserId() {
  return JSON.parse(store.get(pageConstant.storageSyncUserKey).value).userId
}

export function getSelectedXiaoQuId() {
  return sessionStorage.getItem("selectedXiaoQuId")
}

export function jugeIfIsUser() {
  return JSON.parse(store.get(pageConstant.storageSyncUserKey).value).userType == pageConstant.userType[0].value
}

export default { config, getUserId, getSelectedXiaoQuId, jugeIfIsUser }